package com.power.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * @Description 购物车商品条目对象
 * @Author dingchunlin
 * @Date 2024/07/22 13:51
 * @Version 1.0.0
 */
@ApiModel(value = "购物车商品条目对象")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class CartItem {

    @ApiModelProperty(value = "商品ID")
    private Long prodId;

    @ApiModelProperty(value = "商品skuId")
    private Long skuId;

    @ApiModelProperty(value = "商品图片")
    private String pic;

    @ApiModelProperty(value = "商品名称")
    private String prodName;

    @ApiModelProperty(value = "商品sku名称")
    private String skuName;

    @ApiModelProperty(value = "商品单价")
    private BigDecimal price;

    @ApiModelProperty(value = "购物车id")
    private Long basketId;

    @ApiModelProperty(value = "商品购买数量")
    private Integer prodCount;

}
